# Maintainer: Amr Hassan <amr.hassan@gmail.com>
pkgname=cargo-bin
pkgrel=1
pkgver=20150120
pkgdesc="The Rust package manager"
url="http://crates.io/"
arch=('x86_64' 'i686')
license=('MIT')
depends=('rust')
optdepends=()
makedepends=()
conflicts=('cargo-git')
replaces=('cargo-git')
backup=()
install=''
source=("https://static.rust-lang.org/cargo-dist/cargo-nightly-${CARCH}-unknown-linux-gnu.tar.gz")
md5sums=('SKIP')

pkgver() {
  date +%G%m%d
}

package() {
  cd "${srcdir}/cargo-nightly-${CARCH}-unknown-linux-gnu/"
  install -Dm 0755 bin/cargo "${pkgdir}/usr/bin/cargo"
  install -Dm 0755 etc/bash_completion.d/cargo "$pkgdir/etc/bash_completion.d/cargo"
}

# vim:set ts=2 sw=2 et:
